package com.example.gokuplayalong.bases.baiduapi.security;


import com.example.gokuplayalong.BuildConfig;
import com.example.gokuplayalong.MainActivity;
import com.example.gokuplayalong.R;

public class BaiduKey {

    private static BaiduKey INSTANCE = null;

    public static BaiduKey getInstance() {
        if (INSTANCE == null) INSTANCE = new BaiduKey();
        return INSTANCE;
    }

    public String getKey() {
        return getKey1() + getKey2() + getKey3() + getKey4();
    }

    private String getKey1() {
        return BuildConfig.baiduSKey;
    }

    private String getKey2() {
        return "LnXG9gc03";
    }

    private String getKey3() {
        return MainActivity.getInstance().getString(R.string.baidusk4);
    }

    private String getKey4() {
        return getKeyK();
    }

    private String getKeyK() {
        return "vsFHPFRS";
    }
}
